<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>商品购买</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background-color: #f4f4f4;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }

        form {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            max-width: 400px;
            width: 100%;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
        }

        input {
            width: 100%;
            padding: 10px;
            margin-bottom: 16px;
            box-sizing: border-box;
            border: 1px solid #ccc;
            border-radius: 4px;
        }
    </style>
</head>
<body>

<div class="container">
    <h1>添加商品</h1>
    <form action="add" method="post">
        <label class="label-style" for="productName">商品名称:</label>
        <input class="input-box" type="text" id="productName" name="productName" step="0.01" required>

        <label for="productPrice">商品价格:</label>
        <input class="input-box" type="text" id="productPrice" name="productPrice" required>
        <label for="quantity">商品数量:</label>

        <input class="input-box" type="number" id="quantity" name="quantity" required>

        <input type="submit" value="添加到购物车">
    </form>
</div>
</body>
</html>
